package org.tobuy.dao;

import java.util.List;
import org.tobuy.vo.Item;
import org.tobuy.vo.*;

public interface IItemDAO{
	public List<Item> findItems() throws Exception;
	public List<Item> findOnSellItems(User user) throws Exception;
	public List<Item> findItems(String type) throws Exception;
	public Item findItem(String item_id) throws Exception;
	public Book findBook(String item_id) throws Exception;
	public Game findGame(String item_id) throws Exception;
	public Dvd findDvd(String item_id) throws Exception;
	public int addItem(Book book, User user) throws Exception;
	public int addItem(Game game, User user) throws Exception;
	public int addItem(Dvd dvd, User user) throws Exception;
	public boolean deleteItem(String item_id) throws Exception;
	public boolean changeAmount(int amount, String item_id) throws Exception;
	public int last_insert_id() throws Exception;
	

}
